using System.Collections.Generic;
using NodeCanvas.Framework;
using ParadoxNotion.Design;

namespace Yoozoo.Gameplay.Liberty.AI.Node
{
    [Category("Ggame/Liberty")]
    public class CheckNpcAIModel : AIConditionBaseNode
    {
        public BBParameter<NpcAIModel> npcAIModel;
        public BBParameter<CompareType> compareType = CompareType.Equal;

        protected override bool OnCheck()
        {
            NpcAIModel aiModel = _entity.data.npcAIModel;

            switch (compareType.value)
            {
                case CompareType.Equal:
                    {
                        return aiModel == npcAIModel.value;
                    }
                
                default:
                    {
                        return aiModel != npcAIModel.value;
                    }
            }
        }
    }
}